package com.shen.dao;

import com.shen.entity.TrainInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TrainDao {
    /**
     * 查询所有车次
     */
    List<TrainInfo> getAllTrain();
    /**
     * 根据车次查询班次
     */
    TrainInfo findTrain(@Param("trainNo") String no);
    /**
     * 删除车次信息
     */
    int delTrain(@Param("trainId") String[] trainId);
}
